import { _decorator, AudioClip, Component, director, Node } from 'cc'
import { AudioMgr } from '../AudioMgr'
const { ccclass, property } = _decorator

@ccclass('StartButton')
export class StartButton extends Component {
  @property({ type: AudioClip })
  clickButton: AudioClip = null

  onStartClick() {
    AudioMgr.inst.playOneShot(this.clickButton, 1)
    director.loadScene('02-Game')
  }
}
